﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StrategyPattern.Caculation
{
    internal class Division : BaseCaculation
    {
        public override int Caculation(int inputLeft, int inputRight)
        {
            if (inputRight == 0)
            {
                Console.WriteLine("除数不能为零");
                return -1;
            }
            return inputLeft / inputRight;
        }
    }
}
